package me.evis.gae.ping4web.services.net;

import java.util.Date;
import java.util.List;
import java.util.Map;

import org.apache.commons.lang.builder.ReflectionToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;

public class PingStatistics {

    private String url;
    private Date sendingDate;
    private Date receivingDate;
    private int duration;
    private int contentLength;
    private String contentType;
    private Date responseDate;
    private int responseCode;
    private String responseMessage;
    private Map<String, List<String>> headerFields;

    public String getUrl() {
        return url;
    }
    public void setUrl(String url) {
        this.url = url;
    }
    public Date getSendingDate() {
        return sendingDate;
    }
    public void setSendingDate(Date sendingDate) {
        this.sendingDate = sendingDate;
    }
    public Date getReceivingDate() {
        return receivingDate;
    }
    public void setReceivingDate(Date receivingDate) {
        this.receivingDate = receivingDate;
    }
    public int getDuration() {
        return duration;
    }
    public void setDuration(int duration) {
        this.duration = duration;
    }
    public int getContentLength() {
        return contentLength;
    }
    public void setContentLength(int contentLength) {
        this.contentLength = contentLength;
    }
    public String getContentType() {
        return contentType;
    }
    public void setContentType(String contentType) {
        this.contentType = contentType;
    }
    public Date getResponseDate() {
        return responseDate;
    }
    public void setResponseDate(Date responseDate) {
        this.responseDate = responseDate;
    }
    public int getResponseCode() {
        return responseCode;
    }
    public void setResponseCode(int responseCode) {
        this.responseCode = responseCode;
    }
    public String getResponseMessage() {
        return responseMessage;
    }
    public void setResponseMessage(String responseMessage) {
        this.responseMessage = responseMessage;
    }
    public Map<String, List<String>> getHeaderFields() {
        return headerFields;
    }
    public void setHeaderFields(Map<String, List<String>> headerFields) {
        this.headerFields = headerFields;
    }
    
    @Override
    public String toString() {
        return new ReflectionToStringBuilder(this, 
                       ToStringStyle.MULTI_LINE_STYLE).toString();
    }
}
